package gewu.suleju.sevice.imp;

import gewu.suleju.dao.iml.IUserDao;
import gewu.suleju.model.pojo.User;
import gewu.suleju.sevice.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImp implements IUserService {
    @Autowired
    private IUserDao iUserDao;
    @Override
    public User findUserByEmail(String email) {
        return iUserDao.findByEmail(email);
    }
    @Override
    public User findUserByPhone(String phone) {
        return iUserDao.findByPhone(phone);
    }
    //通过用户名查找
    @Override
    public User findUserByUsername(String username) {
        return iUserDao.findUserByUsername(username);
    }
}